package com.lagou.edu.controller;

import com.lagou.edu.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class loginController {

    @Autowired
    private ResumeService resumeService ;

    @RequestMapping("/login")
    public ModelAndView login(){
          ModelAndView modelAndView = new ModelAndView();
          modelAndView.addObject("list",resumeService.showList()) ;
          modelAndView.setViewName("list.jsp");
          return modelAndView;
    }

}
